package shujvjiegou.week8;

/**
 * @Author JetZhang
 * @Date 2021/10/30
 */
public class BitTreeNode {
    public Object data;
    public BitTreeNode lChild, rChild;

    public BitTreeNode() {
        this(null);
    }

    public BitTreeNode(Object data) {
//        this(data, null, null);
        this.data = data;
    }

    public BitTreeNode(Object data, BitTreeNode iChild, BitTreeNode rChild) {
        this.data = data;
        this.lChild = iChild;
        this.rChild = rChild;
    }

    @Override
    public String toString() {
        return "BitTreeNode{" +
                "data=" + data +
                ", lChild=" + lChild +
                ", rChild=" + rChild +
                '}';
    }
}
